package com.baizhi.mapper;

import com.baizhi.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminMapper {
    void addAdmin(Admin admin);
    void removeAdmin(Integer id);
    void updateAdmin(Admin admin);
    Admin selectAdminByName(String name);
    Admin selectAdmin(Integer id);
    List<Admin> selectAllAdmin(@Param("pageNum")Integer pageNum,@Param("pageSize")Integer pageSize);
}
